<div class="row">
	<div class="col-lg-12">
		<h1 class="site-h1" style="background-color:#FFFFFF;">
			提现列表<#if depositList??>（${depositList.totalElements!''}）</#if>
		</h1>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12">
				<table class="layui-table" lay-skin="line" id="example-basic">
				  <thead>
					<tr>
					  <th>用户名</th>
					  <th>手机</th>
					  <th>支付账号</th>
					  <th>支付类型</th>
					  <th>提现金额</th>
					  <th>提现时间</th>
					  <th style="white-space:nowrap;" nowrap="nowrap">操作</th>
					</tr> 
				  </thead>
				  <tbody>
					<#if depositList?? && depositList??>
					<#list depositList.content as list>
					<tr>
					    <td class="add">${list.username!''}</td>
					    <td>${list.user.mobile!''}</td>
					    <td>${list.personalpayment.paymentno!''}</td>
					    <td>${list.personalpayment.paymenttype!''}</td>
					    <td>￥ ${list.amount!?string('0.00')}</td>
					    <td>${list.applyTime!?string("yyyy-MM-dd")}</td>
				  		<td style="white-space:nowrap;" nowrap="nowrap">	
				  			<#if list.status ==0>
				    			<a href="/admin/wdeposit/edit.html?id=${list.id!''}" data-toggle="ajax" data-href-index="/admin/wdeposit/adepositList" data-width="50%" data-height="85%" data-title="提现审核">
					  				<i class="layui-icon">&#xe639;</i>
					    			提现申请中
						  		</a>
				    		<#else>
				    			<i class="layui-icon">&#xe639;</i>
				    			提现成功
				    		</#if>	
					  		
					    </td> 
					</tr>
					</#list>
					</#if>
				  </tbody>
				</table>
			</div> 	   
		</div>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12" id="page" style="text-align:center;"></div>
		</div>
	</div>	
</div>
<script>

var list = [];
<#list depositList.content as list>
list.push({
	"id":"${list.id!''}",
	"amount":"${list.amount!''}",
	"username":"${list.user.username!''}",
	"personalpayment":"${list.personalpayment.paymentno!''}",
	"mobile":"${list.user.mobile!''}",
	"paymenttype":"${list.personalpayment.paymenttype!''}",
	"amount":"${list.amount!''}",
	"applyTime":"${list.applyTime!''}"
	});
</#list>
console.log("数据：list==》",list);

layui.use(['laypage', 'layer','form','laydate'], function(){
  var laypage = layui.laypage
  ,layer = layui.layer;
  laypage({
		cont: 'page'
		,pages: <#if depositList??>${depositList.totalPages}<#else>0</#if> //总页数
		,curr:<#if depositList??>${depositList.number+1}<#else>0</#if>
		,groups: 5 //连续显示分页数
		,jump:function(data , first){
			if(!first){
				location.href = "/admin/wdeposit/adepositList.html?p="+data.curr ;
			}
		}
   });
});
</script>